Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new functions setElementOnFire + isElementOnFire & deprecate setPedOnFire/isPedOnFire #3783

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

FileEX
Copy link
Contributor

@FileEX FileEX commented Oct 8, 2024

Fixed #3673

bool setElementOnFire(element target, bool onFire)
bool isElementOnFire(element target)

This PR adds two new functions common to elements such as ped, vehicle, and object. For peds and vehicles, the isElementOnFire state is synchronized, but not for objects, as object synchronization is currently disabled.

Also, the setPedOnFire and isPedOnFire functions are deprecated in favor of the new functions.

Client/mods/deathmatch/logic/luadefs/CLuaElementDefs.cpp Outdated Show resolved Hide resolved
Client/mods/deathmatch/logic/luadefs/CLuaElementDefs.cpp Outdated Show resolved Hide resolved
Client/mods/deathmatch/logic/rpc/CElementRPCs.cpp Outdated Show resolved Hide resolved
Client/sdk/game/CObject.h Outdated Show resolved Hide resolved
Client/sdk/game/CVehicle.h Outdated Show resolved Hide resolved
Client/sdk/game/CEntity.h Show resolved Hide resolved
Client/mods/deathmatch/logic/CClientVehicle.h Show resolved Hide resolved
Client/mods/deathmatch/logic/CClientPed.h Show resolved Hide resolved
Client/mods/deathmatch/logic/CClientObject.h Show resolved Hide resolved
Client/mods/deathmatch/logic/CClientEntity.h Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a new function setVehicleOnFire
4 participants